package org.tempuri;

public class Service1SoapProxy implements org.tempuri.Service1Soap {
  private String _endpoint = null;
  private org.tempuri.Service1Soap service1Soap = null;
  
  public Service1SoapProxy() {
    _initService1SoapProxy();
  }
  
  public Service1SoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initService1SoapProxy();
  }
  
  private void _initService1SoapProxy() {
    try {
      service1Soap = (new org.tempuri.Service1Locator()).getService1Soap();
      if (service1Soap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)service1Soap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)service1Soap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (service1Soap != null)
      ((javax.xml.rpc.Stub)service1Soap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.Service1Soap getService1Soap() {
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap;
  }
  
  public int darDeAlta(java.lang.String nombre, java.lang.String contrasena, java.lang.String email) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.darDeAlta(nombre, contrasena, email);
  }
  
  public int darDeBaja(java.lang.String nombre) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.darDeBaja(nombre);
  }
  
  public boolean iniciarSesion(java.lang.String usuario, java.lang.String contrasena) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.iniciarSesion(usuario, contrasena);
  }
  
  public boolean modificarContrasena(java.lang.String username, java.lang.String contrasena) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarContrasena(username, contrasena);
  }
  
  public java.lang.String[] listarComentarios(java.lang.String idUsuario) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarComentarios(idUsuario);
  }
  
  public int borrarComentario(int idComentario) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.borrarComentario(idComentario);
  }
  
  public boolean comentar(int idRestaurante, java.lang.String NUsuario, int puntuacion, java.lang.String texto) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.comentar(idRestaurante, NUsuario, puntuacion, texto);
  }
  
  public java.lang.String[] encontrarRestaurantes(double latitud, double longitud) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.encontrarRestaurantes(latitud, longitud);
  }
  
  public int darDeAltaPropietario(java.lang.String nombre, java.lang.String contrasena, java.lang.String email) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.darDeAltaPropietario(nombre, contrasena, email);
  }
  
  public int darDeBajaPropetario(java.lang.String nombre) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.darDeBajaPropetario(nombre);
  }
  
  public boolean iniciarSesionPropietario(java.lang.String usuario, java.lang.String contrasena) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.iniciarSesionPropietario(usuario, contrasena);
  }
  
  public boolean modificarContrasenaPropietario(java.lang.String username, java.lang.String contrasena) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarContrasenaPropietario(username, contrasena);
  }
  
  public boolean modificarEmailPropietario(java.lang.String username, java.lang.String email) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarEmailPropietario(username, email);
  }
  
  public boolean registrarRestaurante(java.lang.String nombre, java.lang.String especialidad, java.lang.String propietario, double latitud, double longitud) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.registrarRestaurante(nombre, especialidad, propietario, latitud, longitud);
  }
  
  public java.lang.String[] listarRestaurantesPropietario(java.lang.String propietario) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarRestaurantesPropietario(propietario);
  }
  
  public boolean modificarRestaurante(int idR, java.lang.String nombre, java.lang.String especialidad, double latitud, double longitud) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarRestaurante(idR, nombre, especialidad, latitud, longitud);
  }
  
  public boolean eliminarRestaurante(int idR) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.eliminarRestaurante(idR);
  }
  
  public boolean anadirCarta(java.lang.String plato, double precio, java.lang.String tipo, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.anadirCarta(plato, precio, tipo, idRestaurante);
  }
  
  public boolean anadirMenu(java.lang.String menu, double precio, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.anadirMenu(menu, precio, idRestaurante);
  }
  
  public boolean modificarCarta(java.lang.String platoAntiguo, java.lang.String plato, double precio, java.lang.String tipo, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarCarta(platoAntiguo, plato, precio, tipo, idRestaurante);
  }
  
  public boolean modificarMenu(java.lang.String menuAntiguo, java.lang.String menu, double precio, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.modificarMenu(menuAntiguo, menu, precio, idRestaurante);
  }
  
  public boolean eliminarCarta(java.lang.String plato, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.eliminarCarta(plato, idRestaurante);
  }
  
  public boolean eliminarMenu(java.lang.String menu, int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.eliminarMenu(menu, idRestaurante);
  }
  
  public boolean iniciarSesionAdmin(java.lang.String admin, java.lang.String contrasena) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.iniciarSesionAdmin(admin, contrasena);
  }
  
  public java.lang.String[] listarUsuarios() throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarUsuarios();
  }
  
  public java.lang.String buscarUsuario(java.lang.String nombre) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.buscarUsuario(nombre);
  }
  
  public java.lang.String[] listarPropietarios() throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarPropietarios();
  }
  
  public java.lang.String buscarPropietario(java.lang.String nombre) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.buscarPropietario(nombre);
  }
  
  public java.lang.String[] listarRestaurantes() throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarRestaurantes();
  }
  
  public java.lang.String[] listarComentariosRestaurante(int idRestaurante) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.listarComentariosRestaurante(idRestaurante);
  }
  
  public java.lang.String[] consultarMenu(int id) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.consultarMenu(id);
  }
  
  public java.lang.String[] consultarCarta(int id) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.consultarCarta(id);
  }
  
  public java.lang.String consultarRestaurante(int id) throws java.rmi.RemoteException{
    if (service1Soap == null)
      _initService1SoapProxy();
    return service1Soap.consultarRestaurante(id);
  }
  
  
}